package routers

import (
	"priceApi/controllers"

	"github.com/astaxie/beego"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/api/price/?:id", &controllers.GetPriceController{})

	beego.Router("/api/rate", &controllers.GetRateController{})
	beego.Router("/api/coinrise", &controllers.GetCoinriseController{})

	beego.Router("/api/test", &controllers.TestController{})
	beego.Router("/api/mytest", &controllers.MytestController{})
	beego.Router("/api/v2/price/?:id", &controllers.GetV2PriceController{})
	beego.Router("/api/v2/coinrise", &controllers.GetV2CoinriseController{})
	//v3-1.4.0版本
	beego.Router("/api/v3/price/?:id", &controllers.GetV3PriceController{})
	beego.Router("/api/v3/coinrise", &controllers.GetV3CoinriseController{})

}
